package mood.su.data;

import com.j256.ormlite.field.DatabaseField;

import java.util.Date;

public class Mood {
    @DatabaseField(generatedId = true)
    int id;
    @DatabaseField
    int dmId;
    @DatabaseField
    private MoodType type;
    @DatabaseField
    private Date time;
    @DatabaseField
    private String desc;

    private boolean durty;

    /* for ormlite*/
    public Mood(){

    }

    public Mood(MoodType type, Date time, String desc){
        this.time = time;
        this.type = type;
        this.desc = desc;
        durty = true;
    }

    public boolean isDurty() {
        return durty;
    }

    public void setDurty(boolean durty) {
        this.durty = durty;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getDmId() {
        return dmId;
    }

    public void setDmId(int dmId) {
        this.dmId = dmId;
    }

    public MoodType getType() {
        return type;
    }

    public void setType(MoodType type) {
        this.type = type;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


}
